use axum::Json;
use http::HeaderMap;
use serde_json::Value;
use sea_orm::EntityTrait;

const NAME:&str = "audit";
// 禁用一个
pub async fn by_id<E:EntityTrait>( header:HeaderMap, entity:E, body:&Value ) -> Result<Json<Value>, Json<Value>>{
    super::is_false::by_id(header, entity, body, NAME).await
}
pub async fn by_ids<E:EntityTrait>( header:HeaderMap, entity:E, body:&Value ) -> Result<Json<Value>, Json<Value>>{
    super::is_false::by_ids(header, entity, body, NAME).await
}
pub async fn by_id_auto<E:EntityTrait>( header:HeaderMap, entity:E, body:&Value ) -> Result<Json<Value>, Json<Value>>{
    super::is_false::by_id_auto(header, entity, body, NAME).await
}